﻿using FreeSql.DatabaseModel;using System;
using System.Collections;
using System.Collections.Generic;
using System.Linq;
using System.Reflection;
using System.Threading.Tasks;
using Newtonsoft.Json;
using FreeSql.DataAnnotations;

namespace DataBase.Main
{

	/// <summary>
	/// 数据库从库管理表
	/// </summary>
	[JsonObject(MemberSerialization.OptIn), Table(Name = "t_dataBaseManager", DisableSyncStructure = true)]
	public partial class TDataBaseManager {

		/// <summary>
		/// 主键唯一标识Id
		/// </summary>
		[JsonProperty, Column(IsPrimary = true, IsIdentity = true)]
		public long Id { get; set; }

		/// <summary>
		/// 所在供电
		/// </summary>
		[JsonProperty, Column(Name = "attributeElectricId")]
		public long? AttributeElectricId { get; set; }

		/// <summary>
		/// 所在线路
		/// </summary>
		[JsonProperty, Column(Name = "attributeLineId")]
		public long? AttributeLineId { get; set; }

		/// <summary>
		/// 数据录入时间
		/// </summary>
		[JsonProperty]
		public DateTime? CreateTime { get; set; }

		/// <summary>
		/// 数据库账号
		/// </summary>
		[JsonProperty, Column(Name = "dataBaseAccount", StringLength = -2)]
		public string DataBaseAccount { get; set; }

		/// <summary>
		/// 数据库服务器地址
		/// </summary>
		[JsonProperty, Column(Name = "dataBaseIP", StringLength = -2)]
		public string DataBaseIP { get; set; }

		/// <summary>
		/// 数据库名称
		/// </summary>
		[JsonProperty, Column(Name = "dataBaseName", StringLength = -2)]
		public string DataBaseName { get; set; }

		/// <summary>
		/// 数据库密码
		/// </summary>
		[JsonProperty, Column(Name = "dataBasePwd", StringLength = -2)]
		public string DataBasePwd { get; set; }

		/// <summary>
		/// 删除时间
		/// </summary>
		[JsonProperty]
		public DateTime? DelTime { get; set; }

		/// <summary>
		/// 删除用户Id
		/// </summary>
		[JsonProperty]
		public long? DelUser { get; set; }

		/// <summary>
		/// 是否删除
		/// </summary>
		[JsonProperty, Column(Name = "isDel")]
		public bool? IsDel { get; set; } = false;

		/// <summary>
		/// 项目名称
		/// </summary>
		[JsonProperty, Column(Name = "projectName", StringLength = -2)]
		public string ProjectName { get; set; }

	}

}
